
    $(function () {
        $("#maphone").blur(function(){
            $.post("/admin/yewu/getPhone", {phone:$("#maphone").val(),id:$('#id').val()},function(vo){
                if(vo.status == 0){
                    layer.msg(vo.msg, {icon: vo.icon});
                    $('#submit').attr("disabled","false"); //禁止点击
                }else{
                    $('#submit').removeAttr("disabled"); //打开点击
                }
            });
        });
        $("#otherphone").blur(function(){
            $.post("/admin/yewu/getPhone", {phone:$("#otherphone").val(),id:$('#id').val()},function(vo){
                console.log(vo);
                if(vo.status == 0){
                    layer.msg(vo.msg, {icon: vo.icon});
                    $('#submit').attr("disabled","false"); //禁止点击
                }else{
                    $('#submit').removeAttr("disabled"); //打开点击
                }
            });
        });
        $("#weixin").blur(function(){
            $.post("/admin/yewu/getWeixin", {weixin:$("#weixin").val(),id:$('#id').val()},function(vo){
                if(vo.status == 0){
                    layer.msg(vo.msg, {icon: vo.icon});
                    $('#submit').attr("disabled","false"); //禁止点击
                }else{
                    $('#submit').removeAttr("disabled"); //打开点击
                }
            });
        });
        $("#qq").blur(function(){
            $.post("/admin/yewu/getQq", {qq:$("#qq").val(),id:$('#id').val()},function(vo){
                if(vo.status == 0){
                    layer.msg(vo.msg, {icon: vo.icon});
                    $('#submit').attr("disabled","false"); //禁止点击
                }else{
                    $('#submit').removeAttr("disabled"); //打开点击
                }
            });
        });
    })




